package com.liu.consumer.annotation;

import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Component;

import java.lang.annotation.*;

/**
 * @param
 * @BelongsProject: QueueDemo2
 * @BelongsPackage: com.liu.consumer.annotation
 * @author: L
 * @Date: 2023/10/21 3:25
 * @return
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Component
@Inherited
public @interface ConsumerClient {

    @AliasFor("topic")
    String value() default "";


    @AliasFor("value")
    String topic() default "";

    String cron() default "*/1 * * * * ?";

    int num() default 10;

}
